From 0d17971e093e56900cfe79975b6529941d1b7001 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20Davidovi=C4=87?= Date: Wed, 24 Dec 2014 05:50:47 +0100 Subject: [PATCH] Break long lines ... --- src/cargo/ops/cargo_rustc/mod.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/cargo/ops/cargo_rustc/mod.rs b/src/cargo/ops/cargo_rustc/mod.rs index 348ff2ebf..fb61306e6 100644 --- a/src/cargo/ops/cargo_rustc/mod.rs +++ b/src/cargo/ops/cargo_rustc/mod.rs @@ -252,7 +252,8 @@ fn compile<'a, 'b>(targets: &[&'a Target], pkg: &'a Package, try!(work.call(desc_tx.clone())); dirty.call(desc_tx) }); - dst.push((if compiled { Job::new(dirty, fresh) } else { Job::noop(dirty, fresh) }, freshness)); + dst.push((if compiled { Job::new(dirty, fresh) } + else { Job::noop(dirty, fresh) }, freshness)); } // If this is a custom build command, we need to not only build the @@ -284,12 +285,13 @@ fn compile<'a, 'b>(targets: &[&'a Target], pkg: &'a Package, let kind = match req { Platform::Plugin => Kind::Host, _ => Kind::Target }; let key = (pkg.get_package_id().clone(), kind); if pkg.get_manifest().get_links().is_some() && - cx.build_state.outputs.lock().contains_key(&key) { - continue - } + cx.build_state.outputs.lock().contains_key(&key) { + continue + } let (dirty, fresh, freshness) = - try!(custom_build::prepare(pkg, target, req, cx)); - run_custom.push((if compiled { Job::new(dirty, fresh) } else { Job::noop(dirty, fresh) }, freshness)); + try!(custom_build::prepare(pkg, target, req, cx)); + run_custom.push((if compiled { Job::new(dirty, fresh) } + else { Job::noop(dirty, fresh) }, freshness)); } // If no build scripts were run, no need to compile the build script! @@ -328,8 +330,8 @@ fn compile<'a, 'b>(targets: &[&'a Target], pkg: &'a Package, dirty.call(desc_tx) }); jobs.enqueue(pkg, Stage::BuildCustomBuild, vec![]); - jobs.enqueue(pkg, Stage::RunCustomBuild, vec![(if compiled { Job::new(dirty, fresh) } else { Job::noop(dirty, fresh) }, - freshness)]); + jobs.enqueue(pkg, Stage::RunCustomBuild, vec![(if compiled { Job::new(dirty, fresh) } + else { Job::noop(dirty, fresh) }, freshness)]); } jobs.enqueue(pkg, Stage::Libraries, libs); -- 2.30.2